package com.finance.cooperate.feature.reader;

import com.finance.cooperate.feature.base.ReaderImpl;
import com.finance.cooperate.feature.core.feature.FeatureDefinition;
import com.finance.cooperate.feature.dto.UserDTO;

import java.util.Map;

public class UserReader extends ReaderImpl {

    @Override
    public Map<String, String> read(String userId) {

        UserDTO dto = userService.getInfo(userId);

        Integer locationType = dto.getLocationType();
        super.put(FeatureDefinition.f_user_location_type, locationType);

        Integer streetIsNull = dto.getStreetIsNull();
        super.put(FeatureDefinition.f_user_street_is_null, streetIsNull);


        return super.getResult();
    }

}
